package com.project.bookstore.stock.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
public class StockAddNewVO implements Serializable {
    //TODO 判断插入还是更新书 然后插入新的库存
    private Long id;
    @JsonProperty(value = "ISBN")
    private String ISBN;
    private String author;
    private String bookName;
    private String classify;
    private BigDecimal costPrice;
    private Integer count;
    //新旧程度
    private String degree;
    private String documentNo;
    //开本
    private Integer folio;
    private String info;
    private Integer isEnable;
    private Integer isMarketable;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8", shape = JsonFormat.Shape.STRING)
    private LocalDate created;
    private BigDecimal oldPrice;
    private String paper;

    private Integer PCS;
    private String picture;
    private String press;
    private BigDecimal price;
    private Integer saleCount;
    private String salesman;
    private String supplier;
}
